package com.demo.exce;

/**
 * @Author WaveHi
 * @Date 24/7/2021 下午 4:00
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
public class IfElseIfElseDemo {

    public static void main(String[] args) {

        //定义变量
        int i1 = 10;
        int i2 = 20;

        //设计分支结构判断
        if (i1 > i2) {
            System.out.println("i1 > i2");
        } else if (i1 == i2) {
            System.out.println("i1 == i2");
        } else {
            System.out.println("i1 < i2");
        }

    }

}
